package com.weakteam.orderonline.administratorconsole.gwt.client.widget;

import com.allen_sauer.gwt.dnd.client.DragContext;
import com.allen_sauer.gwt.dnd.client.drop.VerticalPanelDropController;
import com.google.gwt.user.client.ui.VerticalPanel;

/**
 * @author Nail
 */
public class OrderGoodsDraggableBoxDropController extends VerticalPanelDropController {

    public OrderGoodsDraggableBoxDropController(VerticalPanel dropTarget) {
        super(dropTarget);
    }

    @Override
    public void onDrop(DragContext context) {
        super.onDrop(context);
    }

    @Override
    public void onEnter(DragContext context) {
        super.onEnter(context);
        ((OrderGoodsDraggableBox)context.selectedWidgets.get(0)).setActive();
    }

}